package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.TbUser;
import com.bwie.service.TbUserService;
import com.bwie.mapper.TbUserMapper;
import com.bwie.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author wx200
* @description 针对表【tb_user】的数据库操作Service实现
* @createDate 2025-06-24 08:16:57
*/
@Service
@Slf4j
public class TbUserServiceImpl extends ServiceImpl<TbUserMapper, TbUser>
    implements TbUserService{

    @Autowired
    TbUserMapper tbUserMapper;
    @Override
    public R addList(TbUser tbUser) {
        log.info("发送成功");
        tbUserMapper.insert(tbUser);
        return R.OK();
    }

    @Override
    public R selectlist() {
        List<TbUser> list = tbUserMapper.selectList(null);
        return R.OK(list);
    }
}




